/********************************************************************/
/*  Copyright (C) School of Software Engineering of USTC, 2012                               
/*                                                                                                                       
/*  FILE NAME: socketwrapper.c                                                                                          
/*  PRINCIPAL AUTHOR: SA12226114(Xin Zhu), SA12226139(Dan Shu)                    
/*  SUBSYSTEM NAME:                                                                                     
/*  MODULE NAME: sw                                                                                    
/*  LANGUAGE: C                                                                                                 
/*  TARGET ENVIRONMENT: Linux                                                                          
/*  DATE OF FIRST RELEASE: 2012-12-20                                                             
/*  DESCRIPTION: Impement of Abstract Interface for Tokyo Cabinet DB API              
/********************************************************************/

#ifndef __SOCKETWRAPPER__
#define __SOCKETWRAPPER__

#include "../common/common.h"
#include "../common/debug.h"



void sw_make_socket_non_blocking(int sockfd);
int sw_get_host_ip(char *argv, char *result);
void sw_connect_server(char *ip, int *sockfd);



#endif

